package cn.tedu.charging.order.feign;

import cn.tedu.charging.common.pojo.vo.JsonResult;
import cn.tedu.charging.common.pojo.param.GunStatusUpdateParam;
import cn.tedu.charging.common.pojo.vo.StationInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("deviceService")
public interface DeviceClient {
    @RequestMapping("/device/get/station/info/{gunId}")
    JsonResult<StationInfoVO> getStationInfo(@PathVariable("gunId") Integer gunId);

    @PostMapping("/device/update/gun/status")
    JsonResult<Boolean> updateGunStatus(@RequestBody GunStatusUpdateParam param);
}
